package com.xizi.forum.dao;

import com.xizi.forum.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleInfoMapper {
    int insert(ArticleInfo record);

    int insertSelective(ArticleInfo record);

    ArticleInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleInfo record);

    int updateByPrimaryKeyWithBLOBs(ArticleInfo record);

    int updateByPrimaryKey(ArticleInfo record);

    List<ArticleInfo> selectAllArticleByBoardId(Long boardId);

    List<ArticleInfo> selectAllArticle();

    ArticleInfo selectDetailsById(Long id);

    List<ArticleInfo> selectAllByUserId(Long userId);
}